module.exports = {
  devServer: {
    proxy: {
      '/socket.io': {
        target: 'http://127.0.0.1:8090',
        ws: true,
        changeOrigin: true
      },
      'sockjs-node': {
        target: 'http://127.0.0.1:8090',
        ws: false,
        changeOrigin: true
      },
    }

  },
  configureWebpack: {
    externals: {
      'AMap': 'AMap' // 高德地图配置
    }
  }
}